package veda;

import com.example.eeuse.model.VedaResponse;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

public class SortMain {

    public static void main(String[] args) {
        List<SortMe> list=new ArrayList<>();
        list.add(new SortMe(1));
        list.add(new SortMe(9));
        list.add(new SortMe(2));
        list.add(new SortMe(4));
        list.sort(Comparator.comparing(SortMe::getSn));
        System.out.println();
    }

    @AllArgsConstructor
    @Data
    public static class SortMe{
        private int sn;
    }
}
